<template>
	<div id="storeAddr">
	    <div class="row-top main">
	        <div id="map" v-bind:style="mapStyle"></div>
	    </div>
	</div>
</template>
<script>
export default{
  data: function () {
    return {
      mapStyle: {
        width: '100%',
        height: this.mapHeight + 'px'
      }
    }
  },
  props: {
    // 地图在该视图上的高度
    mapHeight: {
      type: Number,
      default: window.innerHeight
    }
  },
  mounted: function () {
    // console.log(0)
  }
}
</script>

